let childrenList = {
    hjyw: `<div class="flex bgline3">
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('https://msjw.gat.shandong.gov.cn/wxbusiness/childIndex.do?policeType=13&childType=dj')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/djzx.png">
                    <p class="ft14 mt5 tc">登记注销</p>
                </div>
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('https://msjw.gat.shandong.gov.cn/wxbusiness/childIndex.do?policeType=13&childType=hk')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/hkqy.png">
                    <p class="ft14 mt5 tc">户口迁移</p>
                </div>
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('https://msjw.gat.shandong.gov.cn/wxbusiness/childIndex.do?policeType=13&childType=bg')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/bggz.png">
                    <p class="ft14 mt5 tc">变更更正</p>
                </div>
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('https://msjw.gat.shandong.gov.cn/wxbusiness/childIndex.do?policeType=13&childType=jz')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/jzzyw.png">
                    <p class="ft14 mt5 tc">居住证业务</p>
                </div>
            </div>
            <div class="flex bgline3">
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('https://msjw.gat.shandong.gov.cn/zayw/sdjw.jsp')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/sffjdcx.png">
                    <p class="ft14 mt5 tc">身份证<br>办理进度</p>
                </div>
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('http://dygawjw.dongying.cn/pages/proof/temporaryID.html')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/lssfzm.png">
                    <p class="ft14 mt5 tc">临时身份<br>证明</p>
                </div>
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('http://dygawjw.dongying.cn/pages/proof/hujibiangeng.html')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/hjzm.png">
                    <p class="ft14 mt5 tc">户籍证明</p>
                </div>
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('http://dygawjw.dongying.cn/pages/proof/yuhuzhuguanxi.html')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/yhzgx.png">
                    <p class="ft14 mt5 tc">与户主<br>关系证明</p>
                </div>
            </div>
            <div class="flex bgline3">
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('http://dygawjw.dongying.cn/pages/proof/lawyerProof.html')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/jzzyw.png">
                    <p class="ft14 mt5 tc">律师查询<br>户籍</p>
                </div>
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('http://dygawjw.dongying.cn/pages/convenience/hjywlist.html')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/hzlxfs.png">
                    <p class="ft14 mt5 tc">户籍业务<br>办理网点</p>
                </div>
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('https://msjw.gat.shandong.gov.cn/wechat/html/juzhuzhengnew.html')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/sffjdcx.png">
                    <p class="ft14 mt5 tc">居住<br>登记信息</p>
                </div>
                <div class="w25 ptb10 flex column alcenter">
                    
                </div>
            </div>`,
    jgyw: `<div class="flex bgline3">
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('https://msjw.gat.shandong.gov.cn/idcapprovalreception/getDetailInfo.shtml?typid=AB285446EEA64A41AA000AF8D6301275&org_id=directly')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/jsyyhj.png">
                    <p class="ft14 mt5 tc">家属预约会见</p>
                </div>
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('https://msjw.gat.shandong.gov.cn/idcapprovalreception/getDetailInfo.shtml?typid=AB285446EEA64A41AA000AF8D6301274&org_id=directly')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/lsyyhj.png">
                    <p class="ft14 mt5 tc">律师预约会见</p>
                </div>
                <div class="w25 ptb10 flex column alcenter">
                   
                </div>
                <div class="w25 ptb10 flex column alcenter">
                    
                </div>
            </div>`,
    crjyw: `<div class="flex bgline3">
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('https://msjw.gat.shandong.gov.cn/wechat/html/whymcrj.html')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/yybl.png">
                    <p class="ft14 mt5 tc">预约办理</p>
                </div>
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('http://jncrj.jnzhwl.com/sxsd/index.html?from=singlemessage#/')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/gatly.png">
                    <p class="ft14 mt5 tc">双向速递</p>
                </div>
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('https://msjw.gat.shandong.gov.cn/crjquery/doubleindex.shtml')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/bljdcx.png">
                    <p class="ft14 mt5 tc">办理进度查询</p>
                </div>
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('http://dygawjw.dongying.cn/pages/convenience/crjlist.html')">
                <img class="wt50 ht50" src="../../../res/detailError/img/crjwd.png">
                <p class="ft14 mt5 tc">出入境网点</p>
                </div>
            </div>`,
    jtcx:  `<div class="flex bgline3">
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('https://msjw.gat.shandong.gov.cn/h5-webapp/viosurveil/startWZView.do?transacCode=101003')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/jtwfcl.png">
                    <p class="ft14 mt5 tc">违法查询处理</p>
                </div>
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('http://gat.shandong.gov.cn/h5-webapp/index/toIndex.do')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/fdjk.png">
                    <p class="ft14 mt5 tc">罚单缴款</p>
                </div>
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('https://msjw.gat.shandong.gov.cn/h5-webapp/dri/init.do')"> 
                    <img class="wt50 ht50" src="../../../res/detailError/img/jfcx.png">
                    <p class="ft14 mt5 tc">记分查询</p>
                </div>
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('https://open.weixin.qq.com/connect/oauth2/authorize')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/ddcdj.png">
                    <p class="ft14 mt5 tc">电动车登记</p>
                </div>
            </div>
            <div class="flex bgline3">
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('https://msjw.gat.shandong.gov.cn/wechat/html/lscjzm.html')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/lscjzm.png">
                    <p class="ft14 mt5 tc">临时乘机证明</p>
                </div>
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('https://msjw.gat.shandong.gov.cn')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/traffic.png">
                    <p class="ft14 mt5 tc">电子行驶证信息</p>
                </div>
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('https://msjw.gat.shandong.gov.cn/wechat/xcode/jszgonggao.html')"> 
                    <img class="wt50 ht50" src="../../../res/detailError/img/jszxx.png">
                    <p class="ft14 mt5 tc">驾驶证信息</p>
                </div>
                <div class="w25 ptb10 flex column alcenter">
                    
                </div>
            </div>`,
    jwgk: `<div class="flex bgline3">
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('https://msjw.gat.shandong.gov.cn/wxnotice/index.shtml')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/jwzx.png">
                    <p class="ft14 mt5 tc">警务资讯</p>
                </div>
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('https://msjw.gat.shandong.gov.cn/ZFGK/app/ajblgk/index.html')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/ajxxcx.png">
                    <p class="ft14 mt5 tc">案件信息查询</p>
                </div>
                <div class="w25 ptb10 flex column alcenter">
                    
                </div>
                <div class="w25 ptb10 flex column alcenter">
                    
                </div>
            </div>`,
    mssq: `<div class="flex bgline3">
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('https://msjw.gat.shandong.gov.cn/wxdemands/xz.shtml?type=10')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/wyts.png">
                    <p class="ft14 mt5 tc">我要投诉</p>
                </div>
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('https://msjw.gat.shandong.gov.cn/wxdemands/xz.shtml?type=20')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/wyjb.png">
                    <p class="ft14 mt5 tc">我要举报</p>
                </div>
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('https://msjw.gat.shandong.gov.cn/wxdemands/xz.shtml?type=40')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/wyjy.png">
                    <p class="ft14 mt5 tc">我要建议</p>
                </div>
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('https://msjw.gat.shandong.gov.cn/wxdemands/xz.shtml?type=30')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/wyjy.png">
                    <p class="ft14 mt5 tc">留言咨询</p>
                </div>
            </div>`,
    hajc: `<div class="flex bgline3">
                <div class="w25 ptb10 flex column alcenter" onclick="goToApp('http://dycb.niulian888.com/#/pages/index/index')">
                    <img class="wt50 ht50" src="../../../res/detailError/img/ymxxba.png">
                    <p class="ft14 mt5 tc">渔民信息备案</p>
                </div>
                <div class="w25 ptb10 flex column alcenter">
                   
                </div>
                <div class="w25 ptb10 flex column alcenter">
                    
                </div>
                <div class="w25 ptb10 flex column alcenter">
                    
                </div>
            </div>`,
}



function switchApp(obj, name){
    $(obj).toggleClass("bgline3");
    $(obj).siblings().removeClass("bgline3");
    $(".weui-panel__bd>div.bgline3").remove();
    if($(obj).hasClass("bgline3")){
        $(obj).parent().after(childrenList[name]);
    }
}

function goToApp(url){
  location.href = url
}
